package models

import (

	"time"
	"github.com/astaxie/beego/orm"
)

//自动创建表结构
type LoraRecord struct {
	Id     int       `orm:"auto"`
	Ipaddr string    `orm:"size(20)"`
	Accept time.Time `orm:"auto_now_add;type(datetime)"`
	SrcId  uint16
	Cmd    uint8
	Info   string `orm:"size(64)"`
}

func init() {
	orm.RegisterModel(new(LoraRecord))
}
